package com.empire.module.rainbow.controller.app.diy.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.*;
import java.time.LocalDateTime;

@Schema(description = "用户 APP - 六彩-装修模板新增/修改 Request VO")
@Data
public class AppRainbowDiyTemplateSaveReqVO {

    @Schema(description = "装修模板编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "3874")
    private Long id;

    @Schema(description = "模板名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "模板名称不能为空")
    private String name;

    @Schema(description = "是否使用", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否使用不能为空")
    private Boolean used;

    @Schema(description = "使用时间")
    private LocalDateTime usedTime;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "预览图")
    private String previewPicUrls;

    @Schema(description = "模板属性，JSON 格式")
    private String property;

}
